import request from '@/utils/request'

// 查询风箱列表
export function listBellows(query) {
  return request({
    url: '/stock/bellows/list',
    method: 'get',
    params: query
  })
}

// 查询风箱详细
export function getBellows(id) {
  return request({
    url: '/stock/bellows/' + id,
    method: 'get'
  })
}

// 新增风箱
export function addBellows(data) {
  return request({
    url: '/stock/bellows',
    method: 'post',
    data: data
  })
}

// 修改风箱
export function updateBellows(data) {
  return request({
    url: '/stock/bellows',
    method: 'put',
    data: data
  })
}

// 删除风箱
export function delBellows(id) {
  return request({
    url: '/stock/bellows/' + id,
    method: 'delete'
  })
}

// 导出风箱
export function exportBellows(query) {
  return request({
    url: '/stock/bellows/export',
    method: 'get',
    params: query
  })
}

// 风箱图表
export function getBellowDataDialog(query) {
  return request({
    url: '/stock/bellows/getBellowDataDialog',
    method: 'get',
    params: query
  })
}

export function getBellowsDataNow(query) {
  return request({
    url: '/stock/bellows/getBellowsDataNow',
    method: 'get',
    params: query
  })
}


